#ifndef FLAC_H
#define FLAC_H

#include <stdint.h>

typedef struct {
    uint64_t total_samples;
    uint64_t cnt;
    uint32_t sample_rate;
    uint32_t bps;
    uint8_t channels;
    int16_t *wav;
} FlacData;

int fd_decode(FlacData * fd, const char *file);

static inline void fd_free(FlacData * fd) { free(fd->wav); };

#endif